<?php
/**
 * Created by PhpStorm.
 * User: alexlz
 * Date: 10/2/14
 * Time: 9:25 AM
 */

namespace base;

if (!defined('NYMPH_ROOT')) {
  define('NYMPH_ROOT', dirname("../../../" . __FILE__));
  require(NYMPH_ROOT . '/local/loader/kernel/classes/URLClassLoader.php');
}

/**
 * The ITransaction interface provides methods
 * for managing Transaction processes
 */
interface ITransaction {

    /**
     * (PHP 5)<br/>
     * Starts transaction.
     * @returns boolean result
     */
    static function startTransaction();

    /**
     * (PHP 5)<br/>
     * Commits all changes transaction which were added after starting transaction.
     * @returns boolean result
     */
    static function commitTransaction();

    /**
     * (PHP 5)<br/>
     * Discards all changes which were added after starting transaction.
     * @returns boolean result
     */
    static function rollbackTransaction();
} 